home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 06 - 1990 / 06.08 Aug 90 / Test Object Source / CWaveApp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-31  |  918 b   |  65 lines  |  [TEXT/KAHL]

  1. /*****
  2.  * CWaveApp.c
  3.  *
  4.  *    © Symantec - USE FOR TEST ONLY! - (stripped down from Starter appl)
  5.  *
  6.  *****/
  7.  
  8. #include "CWaveApp.h"
  9. #include "CWaveDoc.h"
  10.  
  11. extern    OSType    gSignature;
  12.  
  13. /* IWaveApp */
  14.  
  15. void CWaveApp::IWaveApp(void)
  16.  
  17. {
  18.     CApplication::IApplication(4, 20480L, 2048L);
  19. }
  20.  
  21.  
  22. /* SetUpFileParameters */
  23.  
  24. void CWaveApp::SetUpFileParameters(void)
  25.  
  26. {
  27.     inherited::SetUpFileParameters();    /* Be sure to call the default method */
  28.     sfNumTypes = 1;
  29.     sfFileTypes[0] = 'TEXT';
  30.     gSignature = '????';
  31. }
  32.  
  33.  
  34. /* Exit */
  35.  
  36. void CWaveApp::Exit()
  37.  
  38. {
  39. }
  40.  
  41.  
  42. /* CreateDocument */
  43.  
  44. void CWaveApp::CreateDocument()
  45.  
  46. {
  47.     CWaveDoc    *theDocument;
  48.     
  49.     theDocument = new(CWaveDoc);
  50.     theDocument->IWaveDoc(this, TRUE);
  51.     theDocument->NewFile();
  52. }
  53.  
  54.  
  55. /* OpenDocument */
  56.  
  57. void CWaveApp::OpenDocument(SFReply *macSFReply)
  58.  
  59. {
  60.     CWaveDoc    *theDocument;
  61.     
  62.     theDocument = new(CWaveDoc);
  63.     theDocument->IWaveDoc(this, TRUE);
  64.     theDocument->OpenFile(macSFReply);
  65. }